package com.docking.heylo.web.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class UserBankDto {

    @NotNull(message = "{bank_card.not_exist}", groups = {IdNotNull.class})
    private Integer id;

    /***
     * 银行名称
     */
    @NotEmpty(message = "{bank_card_name.null}", groups = {Sava.class})
    private String bankName;

    /***
     * 银行卡号
     */
    @NotEmpty(message = "{card_number.null}", groups = {Sava.class})
    private String cardNumber;

    /***
     * 持卡人
     */
    @NotEmpty(message = "{cardholder.null}", groups = {Sava.class})
    private String cardOwner;

    /***
     * 手机号
     */
    @NotEmpty(message = "{cardholder.null}", groups = {Sava.class})
    private String phone;

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getCardOwner() {
        return cardOwner;
    }

    public void setCardOwner(String cardOwner) {
        this.cardOwner = cardOwner;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public interface Sava{}
    public interface IdNotNull{}



}
